package edu.zut.hb.ambition.pharmacy.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import edu.zut.hb.ambition.base.domain.Column;

import edu.zut.hb.ambition.base.domain.BaseEntity;
public class Pharmacy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Column(name = "pharmacyid")
    private String pharmacyid;

    @Column(name = "pharmacyname")
    private String pharmacyname;


    @Column(name = "drugstore")
    private Long drugstore;


    @Column(name = "skull")
    private String skull;


    @Column(name = "warehouseid")
    private Long warehouseid;


    @Column(name = "unit")
    private String unit;


    @Column(name = "sellingprice")
    private BigDecimal sellingprice;


    @Column(name = "area")
    private String area;


    @Column(name = "type")
    private String type;


    @JsonFormat(pattern = "yyyy-MM-dd")
    @Column(name = "producedate", width = 30, dateFormat = "yyyy-MM-dd")
    private Date producedate;


    @JsonFormat(pattern = "yyyy-MM-dd")
    @Column(name = "validdate", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validdate;


    @Column(name = "drugstorenum")
    private Long drugstorenum;


    @Column(name = "skullbatch")
    private String skullbatch;

    public void setPharmacyid(Long pharmacyid) 
    {
        this.pharmacyid = pharmacyid;
    }

    public Long getPharmacyid() 
    {
        return pharmacyid;
    }
    public void setPharmacyname(String pharmacyname) 
    {
        this.pharmacyname = pharmacyname;
    }

    public String getPharmacyname() 
    {
        return pharmacyname;
    }
    public void setDrugstore(Long drugstore) 
    {
        this.drugstore = drugstore;
    }

    public Long getDrugstore() 
    {
        return drugstore;
    }
    public void setSkull(String skull) 
    {
        this.skull = skull;
    }

    public String getSkull() 
    {
        return skull;
    }
    public void setWarehouseid(Long warehouseid) 
    {
        this.warehouseid = warehouseid;
    }

    public Long getWarehouseid() 
    {
        return warehouseid;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setSellingprice(BigDecimal sellingprice) 
    {
        this.sellingprice = sellingprice;
    }

    public BigDecimal getSellingprice() 
    {
        return sellingprice;
    }
    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setProducedate(Date producedate) 
    {
        this.producedate = producedate;
    }

    public Date getProducedate() 
    {
        return producedate;
    }
    public void setValiddate(Date validdate) 
    {
        this.validdate = validdate;
    }

    public Date getValiddate() 
    {
        return validdate;
    }
    public void setDrugstorenum(Long drugstorenum) 
    {
        this.drugstorenum = drugstorenum;
    }

    public Long getDrugstorenum() 
    {
        return drugstorenum;
    }
    public void setSkullbatch(String skullbatch) 
    {
        this.skullbatch = skullbatch;
    }

    public String getSkullbatch() 
    {
        return skullbatch;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pharmacyid", getPharmacyid())
            .append("pharmacyname", getPharmacyname())
            .append("drugstore", getDrugstore())
            .append("skull", getSkull())
            .append("warehouseid", getWarehouseid())
            .append("unit", getUnit())
            .append("sellingprice", getSellingprice())
            .append("area", getArea())
            .append("type", getType())
            .append("producedate", getProducedate())
            .append("validdate", getValiddate())
            .append("drugstorenum", getDrugstorenum())
            .append("skullbatch", getSkullbatch())
            .toString();
    }
}
